<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html>
<html>
    <head>
        <title>跳转提示</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!--STYLE_PLACEHOLDER-->
		<style>
        *{margin: 0px;padding: 0px;}
        img{border: 0 none;}
        a{text-decoration: none;}
        body{font-family: 'Microsoft yahei';background: #ea5513;font-size: 100px;}
        .g-bd{ min-width: 300px;max-width: 1024px; margin: 0 auto;}
        .g-bd .row-1 .pic{width: 70%; margin: 10% auto 0;}
        .g-bd .row-1 .pic img{width: 100%;}
  		.g-bd .row-1 .info{height: 75px;margin: 20px 25px 0;text-align: center;}
        .g-bd .row-1 .info h1{font-size: 2rem; line-height: 2.5rem;}
        .g-bd .row-1 .info p{font-size: 0.8rem;line-height: 2.6rem;}
        </style>
</head>
<body>
<div class="g-bd">
	<div class="row row-1">
		<?php if(isset($message)) {?>
			<div class="g-bd">
	            <div class="row row-1">
	              <div class="block pic"><img src="__COMMON__/img/moubile_s.png"></div>
	              <div class="block info">
	                <h1><?php echo($message); ?></h1>
	                <p class="jump">
	                等待 <b id="wait"><?php echo($waitSecond); ?></b> 秒钟，页面将自动<a id="href" href="<?php echo($jumpUrl); ?>">跳转</a>
	</p>
	              </div>
	            </div>
	        </div>
		<?php }else{?>
			<div class="g-bd">
	            <div class="row row-1">
	              <div class="block pic"><img src="__COMMON__/img/moubile_e.png"></div>
	              <div class="block info">
	                <h1><?php echo($error); ?></h1>
	                <p class="jump">
等待 <b id="wait"><?php echo($waitSecond); ?></b> 秒钟，页面将自动<a id="href" href="<?php echo($jumpUrl); ?>">跳转</a>
</p>
	              </div>
	            </div>
	        </div>
		<?php }?>
		
	</div>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>